﻿<Window x:Class="CowUI.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="MainWindow" Height="398" Width="525">
    <Grid Height="358">
        <Grid.RowDefinitions>
            <RowDefinition Height="50px"/>
            <RowDefinition Height="30px"/>
            <RowDefinition Height="30px"/>
            <RowDefinition Height="*"/>
        </Grid.RowDefinitions>
        <Button Height="30px" Width="80" Content="导入" VerticalAlignment="Center" Click="Button_Click" HorizontalAlignment="Left" Margin="324,10,0,10" />
        <Button Height="30px" Width="80px" Content="生成" VerticalAlignment="Center" Margin="410,10,12,10" Click="Button_Click_2" />
        <DataGrid AutoGenerateColumns="False" Grid.Row="3" Height="248" HorizontalAlignment="Left" Name="dataGrid1" VerticalAlignment="Top" Width="503" ItemsSource="{Binding}">
            <DataGrid.Columns>
                <DataGridTextColumn Header="文件路径" Binding="{Binding FileName}" Width="400" IsReadOnly="True"  />
                <DataGridTemplateColumn Header="操作" IsReadOnly="False">
                    <DataGridTemplateColumn.CellTemplate>
                        <DataTemplate>
                            <Button Content="删除" Command="Delete"/>
                        </DataTemplate>
                    </DataGridTemplateColumn.CellTemplate>
                </DataGridTemplateColumn>
            </DataGrid.Columns>
        </DataGrid>
        <Label Content="命名空间" Height="30" HorizontalAlignment="Left" Margin="7,13,0,0" Name="label1" VerticalAlignment="Top" Width="62" />
        <TextBox Height="27" HorizontalAlignment="Left" Margin="70,13,0,0" Name="textBox1" VerticalAlignment="Top" Width="242" />
        <CheckBox Content="Entity" Grid.Row="1" Height="18" HorizontalAlignment="Left" Margin="70,7,0,0" Name="chkEntity" VerticalAlignment="Top" Width="72" />
        <CheckBox Content="Map" Grid.Row="1" Height="18" HorizontalAlignment="Left" Margin="146,7,0,0" Name="chkMap" VerticalAlignment="Top" Width="72" />
        <CheckBox Content="ViewModel" Height="18" HorizontalAlignment="Left" Margin="296,7,0,0" Name="chkViewModel" VerticalAlignment="Top" Width="72" Grid.Row="1" />
        <CheckBox Content="Schema" Height="18" HorizontalAlignment="Left" Margin="215,7,0,0" Name="chkSchema" VerticalAlignment="Top" Width="72" Grid.Row="1" />
        <CheckBox Content="Service" Height="18" HorizontalAlignment="Left" Margin="377,7,0,0" Name="chkService" VerticalAlignment="Top" Width="83" Grid.Row="1" />
        <CheckBox IsEnabled="False" Content="Create" Height="18" HorizontalAlignment="Left" Margin="215,5,0,0" Name="chkCreate" VerticalAlignment="Top" Width="72" Grid.Row="2" />
        <CheckBox IsEnabled="False" Content="Edit" Height="18" HorizontalAlignment="Left" Margin="296,5,0,0" Name="chkEdit" VerticalAlignment="Top" Width="72" Grid.Row="2" />
        <CheckBox IsEnabled="False" Content="List" Height="18" HorizontalAlignment="Left" Margin="70,5,0,0" Name="chkList" VerticalAlignment="Top" Width="59" Grid.Row="2" />
        <CheckBox IsEnabled="False" Content="View" Height="18" HorizontalAlignment="Left" Margin="146,5,0,0" Name="chkView" VerticalAlignment="Top" Width="72" Grid.Row="2" />
        <Label Content="生成内容" Height="30" HorizontalAlignment="Left" Margin="7,2,0,0" Name="label2" VerticalAlignment="Top" Width="62" Grid.Row="1" Grid.RowSpan="2" />
    </Grid>
</Window>
